package pattern.structrual.composite;

/**
 * @Author Gavin
 * @date 2020.07.17 10:48
 */
public abstract class Component {
    abstract void doOperation();

    abstract void add(Component component);

    abstract void remove(Component component);

    abstract Component getChild(int i);

    abstract void print(int level);

    public void print() {
        print(0);
    }
}
